<template functional>
  <!-- 函数式组件 injections.theme -->
  <div>
    <p :style="{ color: injections.theme.color }">E 节点</p>
    <hr />
  </div>
</template>

<script>
export default {
  inject: {
    theme: {
      default: () => ({}),
    },
  },
};
</script>
